Correlates the items of this indexed collection with the items of another sequence and returns the combined items with matching keys.

Namespace:  C1.LiveLinq.Indexing.Search
Assembly:  C1.LiveLinq (in C1.LiveLinq.dll)

Syntax

C#
IEnumerable<TResult> Join<T2, TResult>(
	IEnumerable<T2> source,
	Func<T2, Object> keySelector,
	Func<T, T2, TResult> resultSelector,
	JoinOperator op
)
Visual Basic
Function Join(Of T2, TResult) ( _
	source As IEnumerable(Of T2), _
	keySelector As Func(Of T2, Object), _
	resultSelector As Func(Of T, T2, TResult), _
	op As JoinOperator _
) As IEnumerable(Of TResult)

Parameters

source
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'T2>)>)>
The second sequence to join to this collection.
keySelector
Type: System..::..Func<(Of <(<'T2, Object>)>)>
A function to extract from an item of the second sequence the value to match against this collection's key value.
resultSelector
Type: System..::..Func<(Of <(<'T, T2, TResult>)>)>
A function to create a result element from two matching elements.
op
Type: C1.LiveLinq.Indexing.Search..::..JoinOperator
A comparison operator to match elements.

Type Parameters

T2
The type of the elements of the second sequence.
TResult
The type of the result elements.

Return Value

Enumeration of objects obtained by applying the result selector to pairs of joined elements of the two collections.

See Also